package com.hk.commons.poi.excel.read.sax.v03.handler;

import com.hk.commons.poi.excel.read.sax.v03.XlsReadContext;
import org.apache.poi.hssf.record.BlankRecord;
import org.apache.poi.hssf.record.Record;

/**
 * 空白单元格，没有值，但单元格有样式
 *
 * @author Kevin
 */
public class BlankReaderHandler implements XlsRecordHandler {

    @Override
    public void processRecord(Record poiRecord, XlsReadContext readContext) {
        if (poiRecord instanceof BlankRecord blankRecord) {
            readContext.getColumnValueMap().put(blankRecord.getColumn(), null);
        }
    }
}
